package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ParkingRecordInOutMapper;
import com.ruoyi.domain.ParkingRecordInOut;
import com.ruoyi.service.IParkingRecordInOutService;

/**
 * 车辆进出场记录(下级平台推送)Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-21
 */
@Service
public class ParkingRecordInOutServiceImpl implements IParkingRecordInOutService 
{
    @Autowired
    private ParkingRecordInOutMapper parkingRecordInOutMapper;

    /**
     * 查询车辆进出场记录(下级平台推送)
     * 
     * @param id 车辆进出场记录(下级平台推送)主键
     * @return 车辆进出场记录(下级平台推送)
     */
    @Override
    public ParkingRecordInOut selectParkingRecordInOutById(Long id)
    {
        return parkingRecordInOutMapper.selectParkingRecordInOutById(id);
    }

    /**
     * 查询车辆进出场记录(下级平台推送)列表
     * 
     * @param parkingRecordInOut 车辆进出场记录(下级平台推送)
     * @return 车辆进出场记录(下级平台推送)
     */
    @Override
    public List<ParkingRecordInOut> selectParkingRecordInOutList(ParkingRecordInOut parkingRecordInOut)
    {
        return parkingRecordInOutMapper.selectParkingRecordInOutList(parkingRecordInOut);
    }

    /**
     * 新增车辆进出场记录(下级平台推送)
     * 
     * @param parkingRecordInOut 车辆进出场记录(下级平台推送)
     * @return 结果
     */
    @Override
    public int insertParkingRecordInOut(ParkingRecordInOut parkingRecordInOut)
    {
        return parkingRecordInOutMapper.insertParkingRecordInOut(parkingRecordInOut);
    }

    /**
     * 修改车辆进出场记录(下级平台推送)
     * 
     * @param parkingRecordInOut 车辆进出场记录(下级平台推送)
     * @return 结果
     */
    @Override
    public int updateParkingRecordInOut(ParkingRecordInOut parkingRecordInOut)
    {
        return parkingRecordInOutMapper.updateParkingRecordInOut(parkingRecordInOut);
    }

    /**
     * 批量删除车辆进出场记录(下级平台推送)
     * 
     * @param ids 需要删除的车辆进出场记录(下级平台推送)主键
     * @return 结果
     */
    @Override
    public int deleteParkingRecordInOutByIds(Long[] ids)
    {
        return parkingRecordInOutMapper.deleteParkingRecordInOutByIds(ids);
    }

    /**
     * 删除车辆进出场记录(下级平台推送)信息
     * 
     * @param id 车辆进出场记录(下级平台推送)主键
     * @return 结果
     */
    @Override
    public int deleteParkingRecordInOutById(Long id)
    {
        return parkingRecordInOutMapper.deleteParkingRecordInOutById(id);
    }
}
